package IO;

import java.io.FileInputStream;
import java.io.IOException;

public class FirstDemo {
    public static void main(String[] args) {
        FileInputStream fis = null;
        int s;
        try {
            fis = new FileInputStream("D:/a.txt");
            s = fis.read();
            System.out.println(s);
        } catch (IOException e) {
            e.printStackTrace();
        }finally {
            if(fis!=null){
                try {
                    fis.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
